<%@ page import="java.util.*" language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8" />
		<title>标签管理系统 - 首页</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="${basePath}/ACE/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="${basePath}/ACE/css/font-awesome.min.css" />
		<!--[if IE 7]>
		  <link rel="stylesheet" href="${basePath}/ACE/css/font-awesome-ie7.min.css" />
		<![endif]-->
		<!-- page specific plugin styles -->
		<!-- fonts -->
		<!-- ace styles -->
		<link rel="stylesheet" href="${basePath}/ACE/css/ace.min.css" />
		<link rel="stylesheet" href="${basePath}/ACE/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="${basePath}/ACE/css/ace-skins.min.css" />
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="${basePath}/ACE/css/ace-ie.min.css" />
		<![endif]-->
		<!-- inline styles related to this page -->
		<!-- ace settings handler -->
		<script src="${basePath}/ACE/js/ace-extra.min.js"></script>
		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		<script src="${basePath}/ACE/js/html5shiv.js"></script>
		<script src="${basePath}/ACE/js/respond.min.js"></script>
		<![endif]-->

		<style type="text/css">
			.navbox ul {
				list-style: none;
				display: table;
			}
			
			.navbox ul li {
				float: left;
				margin-top: 12px;
				margin-right: 20px;
			}
			
			.navbox ul li a {
				display: block;
				padding-left: 20px;
				width: 230px;
				height: 100px;
				line-height: 100px;
				color: #fff;
				font-family: "Microsoft YaHei", "微软雅黑", "黑体";
				font-size: 30px;
				text-decoration: none;
				text-align: center;
			}
			
			.navbox ul li a:hover {
				background-color: #E56690;
			}
		</style>

	</head>

	<body>
		<div class="main-container" id="main-container">
			<div class="main-container-inner">
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb">
						<li><i class="icon-home home-icon"></i>
							<a href="welcome.htm">首页</a>
						</li>
						<li>
							<a href="#">公告管理</a>
						</li>
						<li class="active">新增公告</li>
					</ul>
					<!-- .breadcrumb -->
				</div>
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">

							<form role="form" class="form-horizontal" action="" method="post">
								<input type="hidden" name="aid" value="${ad.aid }" />
								<div class="form-group">
									<label class="col-xs-2 control-label no-padding-right" for="title">
               			                        公告标题
        							</label>
									<div class="col-xs-10">
										<input class="col-xs-10" type="text" value="${ad.title }" name="title" id="title" />
									</div>
								</div>
								<div class="space-4">
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label no-padding-right" for="creater">
               			                       发布人:
        							</label>
									<div class="col-xs-10">
										<input class="col-xs-10" name="creater" value="${ad.creater }" type="text" id="creater" />
									</div>
								</div>
								<div class="space-4">
								</div>
								<div class="form-group">
									<label class="col-xs-2 control-label no-padding-right" for="ProjectName">
               			                        公告内容
        							</label>
									<div class="col-xs-9" >
									<script id="content" name="content"></script>
									<script>
										
									</script>
								    </div>
								</div>
								<div class="space-4">
								</div>
								
								
								
								<div class="form-group">
									<label class="col-xs-2 control-label no-padding-right" for="form-field-2">
                                    
                                </label>
									<div class="col-xs-10">
										<input type="submit" class="btn btn-primary" value="修改公告">
									</div>
								</div>

						</div>
						</form>
						<!-- /.row -->
					</div>
					<!-- /.page-content -->
				</div>
				<!-- /.main-container-inner -->
				<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"><i class="icon-double-angle-up icon-only bigger-110">
            </i></a>
			</div>
		</div>
		<!-- /.main-container -->
		<script src='${basePath}/ACE/js/jquery-2.0.3.min.js' type="text/javascript"></script>
		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='${basePath}/ACE/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
		</script>
		<script src="${basePath}/ACE/js/bootstrap.min.js" type="text/javascript"></script>
		<script src="${basePath}/ACE/js/typeahead-bs2.min.js" type="text/javascript"></script>
		<script src="${basePath}/ACE/js/ace-elements.min.js" type="text/javascript"></script>
		<script src="${basePath}/ACE/js/ace.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="data.js"></script>
		<script type="text/javascript" charset="utf-8" src="${basePath}/UE/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="${basePath}/UE/ueditor.all.min.js"> </script>
        <script type="text/javascript" charset="utf-8" src="${basePath}/UE/lang/zh-cn/zh-cn.js"></script>
		<script type="text/javascript">
			var sourceColor;
			$(function() {
				$(".navbox a").hover(function() {
					sourceColor = $(this).css("background-color");
					$(this).css("background-color", "#003B5A");
				}, function() {
					$(this).css("background-color", sourceColor);
				});
			});
			
			$(function(){				
				var ue = UE.getEditor('content');
				ue.ready(function(){
					//加载完毕后 ，设置里面的文本内容 
					ue.setContent('${ad.content}');
				});
			});
			
		</script>
	</body>

</html>